<?php defined('SYSPATH') OR die('No direct access allowed.');?>
<DIV class="userdata">
	<UL class="profile">
		<H3><?=Kohana::lang('members.profile.userdata')?></H3>
			<LI><H4><?=Kohana::lang('members.profile.lname')?></H4><?=$user->user_detail->last_name?></LI>
			<LI><H4><?=Kohana::lang('members.profile.fname')?></H4><?=$user->user_detail->first_name?></LI>
			<LI><H4><?=Kohana::lang('members.profile.mname')?></H4><?=$user->user_detail->middle_name?></LI>
			<LI><H4><?=Kohana::lang('members.profile.icq')?></H4><?=$user->user_detail->icq?></LI>
			<LI><H4><?=Kohana::lang('members.profile.jabber')?></H4><?=$user->user_detail->jabber?></LI>
			<LI><H4><?=Kohana::lang('members.profile.website')?></H4><?=text::auto_link_urls($user->user_detail->website)?></LI>
	</UL>
</DIV>
<DIV class="forumstats">
	<UL class="profile">
		<H3><?=Kohana::lang('members.profile.forumstats')?></H3>
			<LI><H4><?=Kohana::lang('members.profile.registered')?></H4><?=cmsformat::timestamp('main.datetime', $user->created)?></LI>
			<LI><H4><?=Kohana::lang('members.profile.last_login')?></H4><?=cmsformat::timestamp('main.datetime', $user->last_login)?></LI>
			<LI><H4><?=Kohana::lang('members.profile.post_count')?></H4><?=$user->userinfo->post_count?>
			<? if ($user->userinfo->post_count > 0)
				echo html::anchor(Router::uri('forum', array('controller'=>Router::$controller, 'method'=>'posts', 'id'=>$user->id)) ,Kohana::lang('members.profile.find_posts'), array('class'=>'action_link'))
			?>
			</LI>
			<LI><H4><?=Kohana::lang('members.profile.comment_count')?></H4><?=$user->userinfo->comment_count?>
			<? if ($user->userinfo->comment_count > 0)
				echo html::anchor(Router::uri('forum', array('controller'=>Router::$controller, 'method'=>'comments', 'id'=>$user->id)) ,Kohana::lang('members.profile.find_comments'), array('class'=>'action_link'))
			?>
			</LI>
	</UL>
</DIV>